package com.ys.peony.app;

import com.ys.peony.utils.SharePreferencesUtils;

/**
 * URL路径处理类
 *
 * @author yukang
 */
public class HttpURL {
    //腾讯云测试
    //public static final String BASE_URL_DEFAULT = "http://115.159.88.71:8080/atom-business/";
    //API测试地址
    //public static final String BASE_URL_DEFAULT = "http://192.168.50.5:8080/atom-business/";
    //public static final String BASE_URL_DEFAULT = "http://192.168.50.108:8080/atom-business-web/";
    //public static final String BASE_URL_DEFAULT = "http://192.168.0.123:8080/atom-business-web/";
    //API生产地址
    public static final String BASE_URL_DEFAULT = "http://116.62.140.218:8080/atom-business/";
    public static final String BASE_URL = SharePreferencesUtils.getInstance().getUrl();
    //图片下载action
    public static final String IMG_URL = BASE_URL_DEFAULT + "busiAttachmentAction/showPicture.action?path=";
    //websocket 生产地址
    public static final String WEBSOCKET_URL = "ws://116.62.140.218:8080/atom-business/websocket?user_id=";
    //websocket 测试地址
    //public static final String WEBSOCKET_URL = "ws://115.159.88.71:8080/atom-business/websocket?uid=";
    //public static final String WEBSOCKET_URL = "ws://192.168.50.5:8080/atom-business/websocket?uid=";
    //登录
    public static final String login = "appAction/login.action";

    //业务分页
    public static final String busiLoanPage = "appAction/busiLoanPage.action";

    //业务登记准备
    public static final String ywdjPrepare = "appAction/ywdjPrepare.action";

    //业务新增
    public static final String ywdjAdd = "appAction/ywdjAdd.action";
    //业务查看
    public static final String ywdjSee = "appAction/ywdjSee.action";
    //业务修改
    public static final String ywdjUpdate = "appAction/ywdjUpdate.action";
    //业务移除
    public static final String ywdjRemove = "appAction/ywdjRemove.action";

    //业务资料列表
    public static final String riskInfoList = "appAction/riskInfoList.action";
    //上传资料
    public static final String saveBusiLoanInfo = "appAction/saveBusiLoanInfo.action";
    //上传身份证实资料接口
    public static final String saveBusiLoanInfoByIdCheck = "appAction/saveBusiLoanInfoByIdCheck.action";
    //已上传资料图片
    public static final String busiLoanInfoList = "appAction/busiLoanInfoList.action";
    //删除资料图片
    public static final String deleteBusiLoanInfo = "appAction/deleteBusiLoanInfo.action";
    //预约分页
    public static final String busiAppointmentPage = "appAction/busiAppointmentPage.action";
    //预约新增
    public static final String saveBusiAppointment = "appAction/saveBusiAppointment.action";
    //预约修改
    public static final String updateBusiAppointment = "appAction/updateBusiAppointment.action";
    //预约删除
    public static final String deleteBusiAppointment = "appAction/deleteBusiAppointment.action";
    //补件列表
    public static final String patchLoanPage = "appAction/patchLoanPage.action";
    //补件资料列表
    public static final String patchRiskInfoList = "appAction/patchRiskInfoList.action";
    //上传补件资料
    public static final String savePatchBusiLoanInfo = "appAction/savePatchBusiLoanInfo.action";
    //已上传补件资料图片
    public static final String patchBusiLoanInfoList = "appAction/patchBusiLoanInfoList.action";

    //打回补件列表
    public static final String backPatchLoanPage = "appAction/backPatchLoanPage.action";
    //打回补件资料列表
    public static final String backPatchRiskInfoList = "appAction/backPatchRiskInfoList.action";
    //免审资料列表
    public static final String riskInfoListFree = "appAction/riskInfoListFree.action";
    //上传打回补件资料
    public static final String saveBackPatchBusiLoanInfo = "appAction/saveBackPatchBusiLoanInfo.action";
    //已上传打回补件资料图片
    public static final String backPatchBusiLoanInfoList = "appAction/backPatchBusiLoanInfoList.action";
    //待面审列表
    public static final String sectionList = "appAction/sectionList.action";
    //获取用户ID
    public static final String getClientInformation = "appAction/getClientInformation.action";
    //未读信息数量
    public static final String getUserUnReadMessCount = "sysMessageAction/getUserUnReadMessCount.action";
    //查看站内信
    public static final String getMessagesForMobile = "sysMessageAction/getMessagesForMobile.action";

    //业务登记提交
    public static final String ywdjSubmit = "appAction/ywdjSubmit.action";
    //提交补件
    public static final String submitPatch = "appAction/submitPatch.action";
    //提交打回补件
    public static final String submitBackPatch = "appAction/submitBackPatch.action";
    //退出登录
    public static final String loginOut = "appAction/loginOut.action";
    //数据功能
    public static final String shopLoanInfo = "appAction/shopLoanInfo.action";

    /******************************Face++相关****************************************/
    /*//API_KEY_測試
    public static final String FACE_API_KEY = "OgFP7YIT007g5zl5w70Qgnsw_e4BdO0Q";
    //API_SECRET_測試
    public static final String FACE_API_SECRET = "3ck9mQqx0oNMJrYi5_lhptG-Jwn3Hx1t";*/

    //API_KEY_正式
    public static final String FACE_API_KEY = "hnsUuADASw7Y3oOYxdEX3lgtisvN9LBh";
    //API_SECRET_正式
    public static final String FACE_API_SECRET = "1GMfZzosZbGY-RaKNoG8psj_b3HOniuK";


    //身份证验证
    public static final String IDcard = "https://api.faceid.com/faceid/v1/ocridcard";
    //人脸
    public static final String faceVerify = "https://api.megvii.com/faceid/v2/verify";

    /*****************************车300相关*********************/
    //通过vin码获取车辆信息
    public static final String GET_CARINFO_VIN = "appAction/identifyModelByVIN.action";

    //获取车辆型号
    public static final String GET_CARINFO_TYPE = "carModelAction/getModelsBySeriesId.action";

    public static final String CARINFO_TOKEN = "50b60625c3c524ec473c9ef8765a554e";
    public static final String MORTAGESEE = "appAction/mortgageSee.action";
    //获取城市借口
    public static final String GET_CITYS = "che300CityAction/getChe300Citys.action";

    //保单添加修改
    public static final String BAODAN_ADD = "appAction/slipUpdate.action";
    //保单删除
    public static final String BAODAN_DELETE = "appAction/deleteVehicleGuaranteeslip.action";

    //抵押物删除 该抵押物的所有保单都会删除
    public static final String DELETE_CAR = "appAction/deleteMortgage.action";
    //抵押物新增
    public static final String mortgageAdd = "appAction/mortgageAdd.action";
    //抵押物查看
    public static final String mortgageSee = "appAction/mortgageSee.action";
    //抵押物修改
    public static final String mortgageUpdate = "appAction/mortgageUpdate.action";

    //用户保活接口
    public static final String KEEP_LINK = "appAction/keepLink.action";

    //免审资料列表接口
    public static final String busiLoanPageFree = "appAction/busiLoanPageFree.action";

    //合同下载地址
    public static final String CONTRACT_DOWN = BASE_URL_DEFAULT + "contract";
    //public static final String CONTRACT_DOWN = BASE_URL_DEFAULT + "download/sign.pdf";

    //合同电签地址
    public static final String contractSign = "appAction/sign.action";

    //电签客户列表
    public static final String clientContractList = "appAction/contractPage.action";
    //电签合同列表
    public static final String contractList = "appAction/showAll.action";

    //验证码
    public static final String verifyCode = BASE_URL_DEFAULT + "msgAction/send.action";


}
